package org.jet.emall.rbac.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台权限表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_admin_privilege")
@ApiModel(value="AdminPrivilege对象", description="后台权限表")
public class AdminPrivilege implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "权限id,自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "权限类型: 1-菜单; 2-操作")
    private Byte typ;

    @ApiModelProperty(value = "父权限id")
    private Integer superId;


}
